package com.bw.module_home.state

import com.bw.lib_mvicore.IState
import com.bw.module_home.model.entity.SimpleVideoEntity

/**
 * @Author : ZhouZiYao
 * @Time : On 2023/11/23 10:49
 * @Description :
 */
sealed class SimpleVideoState: IState {
    /**
     * 成功获取视频ID
     */
    data class SimpleVideos(val list: MutableList<SimpleVideoEntity>): SimpleVideoState()

    /**
     * 成功获取推荐视频
     */
    data class RecommendSimpleVideos(val list: MutableList<SimpleVideoEntity>): SimpleVideoState()

    /**
     * 获取视频失败ID
     */
    data class Failed(val error: String): SimpleVideoState()

    /**
     * 获取推荐视频失败
     */
    data class RecommendFailed(val error: String): SimpleVideoState()

    /**
     * 初始状态
     */
    object Init: SimpleVideoState()
}